package edu.cuit.campus.service.bean;

import edu.cuit.campus.mapper.AdminMapper;
import edu.cuit.campus.po.Admin;
import edu.cuit.campus.service.AdminService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/8/19 10:20
 */
@Service
public class AdminServiceBean implements AdminService {
    @Resource private AdminMapper mapper;

    @Override
    public Admin login(String username, String password) {
        var admin = mapper.findByUsername(username);
        //比对密码...
        return admin;
    }
}
